package cn.wolfcode.car.business.mapper;

import cn.wolfcode.car.business.domain.Goods;
import cn.wolfcode.car.business.domain.GoodsCategory;
import cn.wolfcode.car.business.query.GoodsCategoryQuery;

import java.util.List;

public interface GoodsCategoryMapper {
    int deleteByPrimaryKey(Long id);

    int insert(GoodsCategory record);

    GoodsCategory selectByPrimaryKey(Long id);

    List<GoodsCategory> selectAll();

    int updateByPrimaryKey(GoodsCategory record);

    List<GoodsCategory> selectForList(GoodsCategoryQuery qo);

    List<GoodsCategory> selectByparentId(Long dictId);

    List<Goods> selectByCategoryId(Long id);

    List<Integer> goodsCount(Long categoryId);

    List<GoodsCategory> selectByparentId2(Long dictId);

    void update(GoodsCategory goodsCategory);
}